#ifndef _queue_
#define _queue_

typedef struct queue_t {
    unsigned int bufwear;
    unsigned int bufhead;
    unsigned int bufhead_read;
    unsigned int buflen;
    unsigned int timeout;
	unsigned char *buf;
}lj_queue_t;

extern void lj_queue_init(lj_queue_t *q, unsigned char *s ,unsigned int len);
 extern void lj_queue_clean(lj_queue_t *q);
 extern unsigned int lj_queue_add_data(lj_queue_t *q, unsigned char *s ,unsigned int len);
 extern void lj_queue_output_data(lj_queue_t *q, unsigned char *s ,unsigned int *len);
 extern void lj_queue_check_data(lj_queue_t *q, unsigned char *s ,unsigned int *len);

#endif
